const Mock = require('mockjs')
const fs = require('fs')

const data = Mock.mock({
  "list|100": [{
    "id": "@id",
    "label": "@ctitle(2, 5)",
    "price|1-100.": 1,
    "state|0-1": 1,
    "year|2024-2025": 1,
    "month|1-12": 1,
    "tip": ""
  }]
})

fs.writeFileSync('data.json', JSON.stringify(data))

